package cn.wolfcode.luowowo.shop.service;

import cn.wolfcode.luowowo.shop.domain.ShopStrategy;
import cn.wolfcode.luowowo.shop.query.ShopStrategyQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IShopStrategyService {

    PageInfo query(ShopStrategyQuery qo);

    /**
     * 物品大攻略推荐保存和更新
     * @param shopStrategy
     */
    void saveOrUpdate(ShopStrategy shopStrategy);

    /**
     * 物品删除
     * @param id
     */
    void delete(Long id);

    /**
     * 查询物品推荐里的前3个展示在物品主页
     * @return
     */
    List<ShopStrategy> getTop3();

    /**
     * 查询id为null
     * @return
     */
    List<ShopStrategy> listByIdIsNull();

    /**
     * 查看热门的目录
     * @return
     */
    List<ShopStrategy> getHot();
}
